<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            align-items: center;
            height: 100vh;
            background-image: url('images/登陆背景图.jpg');
            background-position: center center;
            background-repeat: no-repeat;
            background-size: cover;
            font-family: Arial, sans-serif;
        }
    </style>
</head>
<body>
<div class="login-box">
        <h1 style="color:#000000; font-weight: bold; ">Login</h1>
    <form action="#">
        <div class="input-group">
            <label for="username">用户名：</label>
            <input  placeholder="请输入用户名" type="text" style="width: 280px;height: 20px" id="username" name="name" required>
            <img src="images/用户名.jpg" alt="Image">
        </div>
        <div class="input-group">
            <label for="password">密码：</label>
            <input  placeholder="请输入密码" type="password" style="width: 280px;height: 20px" id="password" name="password" required>
            <img src="images/密码.jpg" alt="Image">
        </div>

        <div class="check">
            <input type="checkbox" id="subscribe" checked="checked">
                <label for="subscribe">记住密码</label>
        </div>

        <div  class="register">
            <a href="注册.html">点击注册一个用户</a>
        </div>
      <div class="icon">
          <button type="submit" class="btn-login">登录</button>
      </div>
    </form>
</div>
</body>
</html>

<style>

    .login-box {
        text-align: left;
        height: 400px;
        width: 750px;
        background: rgba(255,255,255,0.5);
        border: 2px solid #ccc;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        position: relative;
        transform: translateX(500px);
        border-radius: 20px;
    }

    .input-group {
        margin-bottom: 15px;
        position: relative;
    }
    .input-group input {
        width: 90%;
        padding: 10px;
        border: none;
        background: rgba(255,255,255,0.5);
        outline: none;
        border-radius: 20px;
    }
    .input-group input[type="text"]{
        padding-left: 25px;
        margin-bottom: 15px;
    }
    .input-group input[type="password"]{
        padding-left: 25px;
        margin-bottom: 15px;
    }
    .input-group label {
        position: relative;
        display: inline-block;
        width: 10%;
        color: #666;
    }
    .input-group img {
        position: absolute;
        width: 18px;
        height: 17px;
        top: 35%;
        transform: translateY(-50%);
        left: 84px;
    }
    .btn-login {
        width: 100%;
        padding: 10px;
        background: rgba(255,255,255,0.5);
        color: black;
        border: none;
        cursor: pointer;
        border-radius: 10px;
    }

    .check {
        position: relative;
    }
    .check label{
        position: relative;
        color: black;
    }

    .register a{
            color: #5c636a;
            position: absolute;
            text-decoration: none;
            top: 240px;
            left: 240px;
    }

     .icon {
        position: absolute;
        top: 270px;
        left: 250px;
        width: 80px;
        height: 18px;
        border-radius: 10px;
        cursor: pointer;
        display: inline-block;
        transition: all 0.2s ease-in-out;
    }
 

</style>
